.class public Lcom/estrongs/android/taskmanager/b/k;
.super Lcom/estrongs/android/taskmanager/b/c;

# interfaces
.implements Ljava/lang/Comparable;


# instance fields
.field protected a:Landroid/app/ActivityManager$RunningServiceInfo;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/app/ActivityManager$RunningServiceInfo;)V
    .locals 1

    invoke-direct {p0, p1}, Lcom/estrongs/android/taskmanager/b/c;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->a:Landroid/app/ActivityManager$RunningServiceInfo;

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/b/k;->a:Landroid/app/ActivityManager$RunningServiceInfo;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->f:Landroid/content/pm/PackageManager;

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/taskmanager/b/h;)V
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->b:Lcom/estrongs/android/taskmanager/b/i;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->a:Landroid/app/ActivityManager$RunningServiceInfo;

    iget-object v0, v0, Landroid/app/ActivityManager$RunningServiceInfo;->process:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/taskmanager/b/h;->a(Ljava/lang/String;)Lcom/estrongs/android/taskmanager/b/i;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->b:Lcom/estrongs/android/taskmanager/b/i;

    :cond_0
    return-void
.end method

.method public a(Lcom/estrongs/android/taskmanager/b/j;)V
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->c:Landroid/content/pm/ApplicationInfo;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->a:Landroid/app/ActivityManager$RunningServiceInfo;

    iget-object v0, v0, Landroid/app/ActivityManager$RunningServiceInfo;->process:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/taskmanager/b/j;->a(Ljava/lang/String;)Landroid/content/pm/ApplicationInfo;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->c:Landroid/content/pm/ApplicationInfo;

    :cond_0
    return-void
.end method

.method public b()Z
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->a:Landroid/app/ActivityManager$RunningServiceInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->c:Landroid/content/pm/ApplicationInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->d:Landroid/content/pm/PackageInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->d:Landroid/content/pm/PackageInfo;

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->activities:[Landroid/content/pm/ActivityInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/k;->d:Landroid/content/pm/PackageInfo;

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->activities:[Landroid/content/pm/ActivityInfo;

    array-length v0, v0

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
